package cn.edu.neusoft.maxingxin231.yuejian06.Model;

import cn.edu.neusoft.maxingxin231.yuejian06.Activity.ClubDetail;
import cn.edu.neusoft.maxingxin231.yuejian06.Bean.ClubBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Iface.ClubDetailIface;
import cn.edu.neusoft.maxingxin231.yuejian06.Listener.LoginListener;
import cn.edu.neusoft.maxingxin231.yuejian06.Service.LoginService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class ClubDetailModel extends RetrofitBaseModel implements ClubDetailIface<ClubBean> {
    LoginService loginService;
    Retrofit retrofit;
    public ClubDetailModel(){
        retrofit = getRetrofit();
        loginService = getLoginService();
    }
    @Override
    public void getClubDetail(String club_id, LoginListener<ClubBean> listener) {
        Call<ClubBean> call = loginService.clubinfo(club_id);
        callenqueue(call,listener);
    }
}
